package cn.vehicle.service;

import cn.vehicle.domains.entity.VehicleCommonLedgerEntity;

public interface VehicleCommonLedgerService {

    void insert(VehicleCommonLedgerEntity entity);

    void updateAssId(Long id, Long assId);

    /**
     * 获取车辆最后一次通信记录
     */
    VehicleCommonLedgerEntity getLastLedgerByVehicleNumber(String vehicleNumber);

    void updateVehicleExitInfo(VehicleCommonLedgerEntity vehicleCommonLedgerEntity);

    VehicleCommonLedgerEntity getVehicleCommonLedgerByAssId(Long id);
}
